package com.example.smart.dialog

import android.app.Activity
import android.view.Gravity
import android.view.View
import com.example.lib.extend.getDeviceWidth
import com.example.lib.extend.setOnDoubleClickListener
import com.example.smart.base.dialog.base.BaseDialog
import com.example.smart.databinding.DialogFySuccessBinding
import com.example.smart.databinding.DialogReservationSuccessBinding
import com.example.smart.utils.handler.HandUtils

class FySuccessDialog(val activity: Activity) : BaseDialog<DialogFySuccessBinding>(dialogContext = activity,
    width = (getDeviceWidth(activity) * 0.8).toInt(),
    gravity = Gravity.CENTER) {

    override fun setLayoutRes() = com.example.smart.R.layout.dialog_fy_success

    override fun afterViewCreate(view: View?) {
        banCancel()
    }

    override fun show() {
        super.show()
        HandUtils.postTask({
            dismiss()
        }, 2000)
    }
}